63 CS_setupDCO(CS_INTERNAL_RESISTOR);
66 WDT_initIntervalTimer(WDT_BASE,
68 WDT_CLOCKDIVIDER_32K);
69 WDT_resetTimer(WDT_BASE);
72 GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN4);
75 SFR_clearInterrupt(SFR_WATCHDOG_INTERRUPT);
76 SFR_enableInterrupt(SFR_WATCHDOG_INTERRUPT);
78 __bis_SR_register(LPM0_bits | GIE);
82 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
83 #pragma vector=WDT_VECTOR
85 #elif defined(__GNUC__)
86 __attribute__((interrupt(WDT_VECTOR)))
90 GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN4);